package org.despair2D.ui.events 
{
	import flash.events.Event;

	
	
	
public class IndexChangeEvent extends Event 
{
	
	public function IndexChangeEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
	{ 
		super(type, bubbles, cancelable);
		
	} 
	
	
	
	public static const CHANGING:String = 'changing';
	
	public static const CHANGE:String = 'chance';
	
	
	
	/**
	 * 旧的选中索引值
	 */
	public function get oldIndex() : int
	{
		return m_oldIndex;
	}
	
	
	/**
	 * 新的选中索引值
	 */
	public function get newIndex() : int
	{
		return m_newIndex;
	}
	
	
	
	public override function clone():Event 
	{ 
		return new IndexChangeEvent(type, bubbles, cancelable);
	} 
	
	public override function toString():String 
	{ 
		return formatToString("IndexChangeEvent", "type", "bubbles", "cancelable", "eventPhase"); 
	}
	
	
	
	private var m_oldIndex:int;
	
	private var m_newIndex:int;
	
}
	
}